package com.tyqx.hashchainbiz.service.impl;

import com.tyqx.hashchainbean.module.WxAccountFirm;
import com.tyqx.hashchainbiz.service.WxAccountFirmService;
import com.tyqx.hashchaindao.mapper.WxAccountFirmMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @program: hashchain-spring
 * @description:
 * @author: Mr.Li
 * @create: 2020-10-30 15:01
 **/
@Service("wxAccountFirmService")
public class WxAccountFirmServiceImpl implements WxAccountFirmService {


    @Resource
    private WxAccountFirmMapper wxAccountFirmMapper;

    @Override
    public int insertWxAccountFirm(WxAccountFirm wxAccountFirm) {
        return wxAccountFirmMapper.insertWxAccountFirm(wxAccountFirm);
    }

    @Override
    public WxAccountFirm queryWxAccountFirmById(int id) {
        return wxAccountFirmMapper.queryWxAccountFirmById(id);
    }

    @Override
    public List<WxAccountFirm> queryWxAccountFirmList() {
        return wxAccountFirmMapper.queryWxAccountFirmList();
    }

    @Override
    public List<WxAccountFirm> queryWxAccountFirmByOpenId(String openId,Integer accountFirmType) {
        return wxAccountFirmMapper.queryWxAccountFirmByOpenId(openId,accountFirmType);
    }

    @Override
    public List<WxAccountFirm> queryWxAccountFirmByType(Integer accountFirmType) {
        return wxAccountFirmMapper.queryWxAccountFirmByType(accountFirmType);
    }
}
